package innerclassDemo2;

public class Outer {
    private int a = 10;



    private class Inner {
        private int a = 20;

        public void show(){
            int a = 30;
            System.out.println(Outer.this.a); // 10
            System.out.println(this.a); // 20
            System.out.println(a); // 30
        }
    }

    public Inner getInstance(){
        return new Inner();
    }
}
